package test._0419;

import java.util.ArrayList;
import java.util.List;

public class Animal {
    public String name;

    public void eat() {
        System.out.println(name + " eating");
    }
}

class Dog extends Animal {
    public String name;

    @Override
    public void eat() {
        System.out.println(name + " eating desu");
    }
}


class Cat extends Animal {
    public String name;

    @Override
    public void eat() {
        System.out.println(name + " eating nye");
    }

    public void sleep() {
        System.out.println(name + " sleeping nye");
    }
}

class Test {
    public static void main1(String[] args) {
        final int a;
        a = 100;
        System.out.println(a);
    }

    public static void main(String[] args) {
        final List<Integer> list = new ArrayList<>();
        list.add(12);
        System.out.println(list);

        String s = "aaa";
        s = "bbb";
    }
}

class Student {
    final String name;
    final int age = 10;

    public Student(String name) {
        this.name = name;
    }

}